home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1306.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  4.2 KB  |  157 lines

  1. 65
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. MsgBoxEx 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baMsgBoxEx displays a custom MessageBox
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baMsgBoxEx( Message, Caption, Button1, Button2, Button3, Icon, 
  28. --- RECORDSEPARATOR ---
  29. DefButton, Alignment, FontName, FontSize, FontWeight, xPos, yPos )
  30. --- RECORDSEPARATOR ---
  31.  
  32. --- RECORDSEPARATOR ---
  33. Arguments:
  34. --- RECORDSEPARATOR ---
  35.  
  36. --- RECORDSEPARATOR ---
  37. String, string, string, string, string, string, integer, string, string, integer, integer, 
  38. --- RECORDSEPARATOR ---
  39. integer, integer. 
  40. --- RECORDSEPARATOR ---
  41. Message is the message to display. This can contain more than one line 
  42. --- RECORDSEPARATOR ---
  43. Caption is the caption to show in the Title bar 
  44. --- RECORDSEPARATOR ---
  45. Button1 is the caption of the first button 
  46. --- RECORDSEPARATOR ---
  47. Button2 is the caption of the second button 
  48. --- RECORDSEPARATOR ---
  49. Button3 is the caption of the third button 
  50. --- RECORDSEPARATOR ---
  51. Icon is the type of icon to display. This can be one of the following: 
  52. --- RECORDSEPARATOR ---
  53. "Stop" 
  54. --- RECORDSEPARATOR ---
  55. "Information" 
  56. --- RECORDSEPARATOR ---
  57. "Question" 
  58. --- RECORDSEPARATOR ---
  59. "Exclamation" 
  60. --- RECORDSEPARATOR ---
  61. "NoIcon" 
  62. --- RECORDSEPARATOR ---
  63. DefButton is the number of the default (selected) button. Can be 1, 2, or 3 
  64. --- RECORDSEPARATOR ---
  65. depending on the number of buttons. The button on the left hand side is 1. 
  66. --- RECORDSEPARATOR ---
  67. Alignment is the alignment of the message text. Can be: 
  68. --- RECORDSEPARATOR ---
  69. "left" 
  70. --- RECORDSEPARATOR ---
  71. "center" 
  72. --- RECORDSEPARATOR ---
  73. "right" 
  74. --- RECORDSEPARATOR ---
  75. FontName is the name of the font to use 
  76. --- RECORDSEPARATOR ---
  77. FontSize is the size of the font 
  78. --- RECORDSEPARATOR ---
  79. FontWeight is the weight of the font, from 1 - 9 
  80. --- RECORDSEPARATOR ---
  81. xPos is the horizontal position of the dialog 
  82. --- RECORDSEPARATOR ---
  83. yPos is the vertical position of the dialog
  84. --- RECORDSEPARATOR ---
  85.  
  86. --- RECORDSEPARATOR ---
  87. Returns:
  88. --- RECORDSEPARATOR ---
  89.  
  90. --- RECORDSEPARATOR ---
  91. String. 
  92. --- RECORDSEPARATOR ---
  93. Returns the text of the button clicked eg "OK" or "Ignore".
  94. --- RECORDSEPARATOR ---
  95.  
  96. --- RECORDSEPARATOR ---
  97. Examples:
  98. --- RECORDSEPARATOR ---
  99.  
  100. --- RECORDSEPARATOR ---
  101. Director: 
  102. --- RECORDSEPARATOR ---
  103. set Answer = baMsgBoxEx( "How are you feeling?", "Online Doctor" , "Great", "Just 
  104. --- RECORDSEPARATOR ---
  105. OK", "Lousy", "Question" , 1 , "center", "Arial", 12, 4, 100, 100 ) 
  106. --- RECORDSEPARATOR ---
  107. Authorware: 
  108. --- RECORDSEPARATOR ---
  109. Answer := baMsgBoxEx( "How are you feeling?", "Online Doctor" , "Great", "Just 
  110. --- RECORDSEPARATOR ---
  111. OK", "Lousy", "Question" , 1 , "center", "Arial", 12, 4, 100, 100 )
  112. --- RECORDSEPARATOR ---
  113.  
  114. --- RECORDSEPARATOR ---
  115. Notes:
  116. --- RECORDSEPARATOR ---
  117.  
  118. --- RECORDSEPARATOR ---
  119. If you do not want to show all buttons, then make the button text for the button you 
  120. --- RECORDSEPARATOR ---
  121. don't want to appear an empty string. On
  122. --- RECORDSEPARATOR ---
  123.  Windows
  124. --- RECORDSEPARATOR ---
  125. , you can add a keyboard 
  126. --- RECORDSEPARATOR ---
  127. shortcut to a button by placing a & in front of the letter you want it to use. eg 
  128. --- RECORDSEPARATOR ---
  129. "&Later". Under
  130. --- RECORDSEPARATOR ---
  131.  Mac
  132. --- RECORDSEPARATOR ---
  133. , you can not assign a keyboard shortcut. The size of the 
  134. --- RECORDSEPARATOR ---
  135. buttons does not change - you are limited to about 12 characters for the buttons. 
  136. --- RECORDSEPARATOR ---
  137. The font weight is in a range from 1 - 9; 4 is normal, 7 is bold. Not all fonts have all 
  138. --- RECORDSEPARATOR ---
  139. weights. Use 0 if you want to use the standard weight of the font. Under
  140. --- RECORDSEPARATOR ---
  141.  Mac
  142. --- RECORDSEPARATOR ---
  143. , any 
  144. --- RECORDSEPARATOR ---
  145. number greater than 5 will be bold. 
  146. --- RECORDSEPARATOR ---
  147. The values of the xPos and yPos are relative to the screen. Use -1 to center the 
  148. --- RECORDSEPARATOR ---
  149. dialog on the screen, -2 to center on the Director/Authorware window.
  150. --- RECORDSEPARATOR ---
  151.  
  152. --- RECORDSEPARATOR ---
  153. See also:
  154. --- RECORDSEPARATOR ---
  155.  
  156. --- RECORDSEPARATOR ---
  157. baMsgBox